import Vue from "vue";
import Notifications from "vue-notification";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import { createProvider } from "./vue-apollo";
import { directive as fakeDrag } from "./directives/FakeDrag";
import "./styles/iconfont/iconfont.css";
import "./styles/iconfont/iconfont.js";
import "./components/ui";
import "./styles/transition.less";

Vue.use(Notifications);
Vue.config.productionTip = false;
Vue.prototype.$bus = new Vue();
Vue.directive("fake-drag", fakeDrag);
new Vue({
  router,
  apolloProvider: createProvider(),
  render: h => h(App)
}).$mount("#app");
